package com.jingyanku.pojo;

import java.sql.Timestamp;
import java.util.Date;

import com.base.pojo.BaseBean;
import com.system.pojo.Person;

/**
 * Thread entity. @author MyEclipse Persistence Tools
 */

public class Thread extends BaseBean {

	// Fields

	private Integer id;
	private String content;
	private Date dateLastReplied;
	private Integer hit;
	private String ipCreated;
	private Boolean readonly;
	private Integer replyCount;
	private String title;
	private Boolean topped;
	private Person author;
	private Person authorLastReplied;
	private Board board;

	// Constructors

	/** default constructor */
	public Thread() {
	}

	/** minimal constructor */
	public Thread( Integer hit, Boolean readonly,
			Integer replyCount, Boolean topped) {
		this.hit = hit;
		this.readonly = readonly;
		this.replyCount = replyCount;
		this.topped = topped;
	}

	/** full constructor */
	public Thread(String content, Date dateLastReplied, Integer hit,
			String ipCreated, Boolean readonly, Integer replyCount,
			String title, Boolean topped, Person authorId,
			Person authorLastRepliedId, Board boardId) {
		this.content = content;
		this.dateLastReplied = dateLastReplied;
		this.hit = hit;
		this.ipCreated = ipCreated;
		this.readonly = readonly;
		this.replyCount = replyCount;
		this.title = title;
		this.topped = topped;
		this.author = authorId;
		this.authorLastReplied = authorLastReplied;
		this.board = boardId;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}


	public Date getDateLastReplied() {
		return dateLastReplied;
	}

	public void setDateLastReplied(Date dateLastReplied) {
		this.dateLastReplied = dateLastReplied;
	}

	public Integer getHit() {
		return this.hit;
	}

	public void setHit(Integer hit) {
		this.hit = hit;
	}

	public String getIpCreated() {
		return this.ipCreated;
	}

	public void setIpCreated(String ipCreated) {
		this.ipCreated = ipCreated;
	}

	public Boolean getReadonly() {
		return this.readonly;
	}

	public void setReadonly(Boolean readonly) {
		this.readonly = readonly;
	}

	public Integer getReplyCount() {
		return this.replyCount;
	}

	public void setReplyCount(Integer replyCount) {
		this.replyCount = replyCount;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Boolean getTopped() {
		return this.topped;
	}

	public void setTopped(Boolean topped) {
		this.topped = topped;
	}


	public Person getAuthor() {
		return author;
	}

	public void setAuthor(Person author) {
		this.author = author;
	}


	public Person getAuthorLastReplied() {
		return authorLastReplied;
	}

	public void setAuthorLastReplied(Person authorLastReplied) {
		this.authorLastReplied = authorLastReplied;
	}

	public Board getBoard() {
		return board;
	}

	public void setBoard(Board board) {
		this.board = board;
	}


}